package com.sky.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.bytebuddy.asm.Advice;

import java.io.Serializable;
import java.time.DateTimeException;
import java.time.LocalDateTime;
import java.util.List;

/**
 * C端用户登录
 */

public class UserLoginDTO {

    private Long userId;
    private String name;
    private String idCard;
    private Integer sex;
    private String username;
    private String password;
    private String phone;
    private String email;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private List<CustomerDTO> customerCarList;

    public UserLoginDTO() {
    }

    public UserLoginDTO( Long userId, String name, String idCard, Integer sex, String username, String password, String phone, String email, LocalDateTime createTime, List<CustomerDTO> customerCarList) {
        this.userId = userId;
        this.name = name;
        this.idCard = idCard;
        this.sex = sex;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.email = email;
        this.createTime = createTime;
        this.customerCarList = customerCarList;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return idCard
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 设置
     * @param idCard
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 获取
     * @return sex
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return customerCarList
     */
    public List<CustomerDTO> getCustomerCarList() {
        return customerCarList;
    }

    /**
     * 设置
     * @param customerCarList
     */
    public void setCustomerCarList(List<CustomerDTO> customerCarList) {
        this.customerCarList = customerCarList;
    }

    public String toString() {
        return "UserLoginDTO{serialVersionUID = " +", userId = " + userId + ", name = " + name + ", idCard = " + idCard + ", sex = " + sex + ", username = " + username + ", password = " + password + ", phone = " + phone + ", email = " + email + ", createTime = " + createTime + ", customerCarList = " + customerCarList + "}";
    }
}
